package com.taobao.api.request;

import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoObject;
import java.util.Date;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.internal.util.json.JSONWriter;
import com.taobao.api.response.TmallNrSoldOrderlistQueryJstResponse;

/**
 * TOP API: tmall.nr.sold.orderlist.query.jst request
 * 
 * @author top auto create
 * @since 1.0, 2019.01.28
 */
public class TmallNrSoldOrderlistQueryJstRequest extends BaseTaobaoRequest<TmallNrSoldOrderlistQueryJstResponse> {
	
	

	/** 
	* 入参对象
	 */
	private String param0;

	public void setParam0(String param0) {
		this.param0 = param0;
	}

	public void setParam0(NrTimingOrderSoldQueryReqDto param0) {
		this.param0 = new JSONWriter(false,true).write(param0);
	}

	public String getParam0() {
		return this.param0;
	}

	public String getApiMethodName() {
		return "tmall.nr.sold.orderlist.query.jst";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("param0", this.param0);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<TmallNrSoldOrderlistQueryJstResponse> getResponseClass() {
		return TmallNrSoldOrderlistQueryJstResponse.class;
	}

	public void check() throws ApiRuleException {
	}
	
	/**
 * 入参对象
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class NrTimingOrderSoldQueryReqDto extends TaobaoObject {

	private static final long serialVersionUID = 2347477796752159173L;

	/**
		 * 业务标识，dss标识定时送业务；jsd表示极速达业务
		 */
		@ApiField("biz_identity")
		private String bizIdentity;
		/**
		 * 要查询订单数据的商家的sellerID
		 */
		@ApiField("brand_seller_id")
		private Long brandSellerId;
		/**
		 * 要查询的订单创建结束时间，开始时间和结束时间之间最多相隔72小时
		 */
		@ApiField("end_created")
		private Date endCreated;
		/**
		 * 页码
		 */
		@ApiField("page_no")
		private Long pageNo;
		/**
		 * 每页大小--当前限制了20
		 */
		@ApiField("page_size")
		private Long pageSize;
		/**
		 * 要查询的订单创建开始时间
		 */
		@ApiField("start_created")
		private Date startCreated;
	

	public String getBizIdentity() {
			return this.bizIdentity;
		}
		public void setBizIdentity(String bizIdentity) {
			this.bizIdentity = bizIdentity;
		}
		public Long getBrandSellerId() {
			return this.brandSellerId;
		}
		public void setBrandSellerId(Long brandSellerId) {
			this.brandSellerId = brandSellerId;
		}
		public Date getEndCreated() {
			return this.endCreated;
		}
		public void setEndCreated(Date endCreated) {
			this.endCreated = endCreated;
		}
		public Long getPageNo() {
			return this.pageNo;
		}
		public void setPageNo(Long pageNo) {
			this.pageNo = pageNo;
		}
		public Long getPageSize() {
			return this.pageSize;
		}
		public void setPageSize(Long pageSize) {
			this.pageSize = pageSize;
		}
		public Date getStartCreated() {
			return this.startCreated;
		}
		public void setStartCreated(Date startCreated) {
			this.startCreated = startCreated;
		}

}


}